<?php
/**
 * Intreface DAO
 *
 * @author: http://phpdao.com
 * @date: 2012-05-30 11:06
 */
interface HsActivityDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return HsActivity 
	 */
	public function load($id);

	/**
	 * Get all records from table
	 */
	public function queryAll();
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllOrderBy($orderColumn);
	
	/**
 	 * Delete record from table
 	 * @param hsActivity primary key
 	 */
	public function delete($activityID);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param HsActivity hsActivity
 	 */
	public function insert($hsActivity);
	
	/**
 	 * Update record in table
 	 *
 	 * @param HsActivity hsActivity
 	 */
	public function update($hsActivity);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByUserID($value);

	public function queryByActivityTitle($value);

	public function queryByActivityWhen($value);

	public function queryByActivityWhere($value);

	public function queryByActivityStatus($value);

	public function queryByActivityDescription($value);

	public function queryByParticipantLimit($value);

	public function queryByActivityCreateTime($value);

	public function queryByVisitCount($value);

	public function queryByActivityImageCount($value);


	public function deleteByUserID($value);

	public function deleteByActivityTitle($value);

	public function deleteByActivityWhen($value);

	public function deleteByActivityWhere($value);

	public function deleteByActivityStatus($value);

	public function deleteByActivityDescription($value);

	public function deleteByParticipantLimit($value);

	public function deleteByActivityCreateTime($value);

	public function deleteByVisitCount($value);

	public function deleteByActivityImageCount($value);


}
?>